package com.his.bean;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 采购信息表
 * @TableName dzm_his_purchase
 */
public class DzmHisPurchase implements Serializable {
    /**
     * 采购信息ID
     */
    private Integer purchaseId;

    /**
     * 医院药品关联表：hmr_id
     */
    private Integer medicinesId;

    /**
     * 医院药品关联表：hmr_id  药品名称
     */
    private String medicinesName;


    /**
     * 批次库存ID
     */
    private String batchesOfInventoryId;

    /**
     * 采购数量
     */
    private Integer purchaseNum;

    /**
     * 采购单位
     */
    private String purchaseUnit;

    /**
     * 批发价
     */
    private BigDecimal purchaseTradePrice;

    /**
     * 处方价
     */
    private BigDecimal purchasePrescriptionPrice;

    /**
     * 采购批发总额
     */
    private BigDecimal purchaseTradeTotalAmount;

    /**
     * 采购处方总额
     */
    private BigDecimal purchasePrescriptionTotalAmount;

    /**
     * 创建时间
     */
    private String createTime;

    /**
     *
     */
    private Integer hmrId;


    private Integer batchesOfInventoryStatus;

    public Integer getBatchesOfInventoryStatus() {
        return batchesOfInventoryStatus;
    }

    public void setBatchesOfInventoryStatus(Integer batchesOfInventoryStatus) {
        this.batchesOfInventoryStatus = batchesOfInventoryStatus;
    }


    private static final long serialVersionUID = 1L;

    /**
     * 采购信息ID
     */
    public Integer getPurchaseId() {
        return purchaseId;
    }

    /**
     * 采购信息ID
     */
    public void setPurchaseId(Integer purchaseId) {
        this.purchaseId = purchaseId;
    }

    /**
     * 医院药品关联表：hmr_id
     */

    public Integer getMedicinesId() {
        return medicinesId;
    }



    /**
     * 医院药品关联表：hmr_id
     */
    public void setMedicinesId(Integer medicinesId) {
        this.medicinesId = medicinesId;
    }

    public String getMedicinesName() {
        return medicinesName;
    }

    public void setMedicinesName(String medicinesName) {
        this.medicinesName = medicinesName;
    }

    /**
     * 批次库存ID
     */
    public String getBatchesOfInventoryId() {
        return batchesOfInventoryId;
    }

    /**
     * 批次库存ID
     */
    public void setBatchesOfInventoryId(String batchesOfInventoryId) {
        this.batchesOfInventoryId = batchesOfInventoryId;
    }

    /**
     * 采购数量
     */
    public Integer getPurchaseNum() {
        return purchaseNum;
    }

    /**
     * 采购数量
     */
    public void setPurchaseNum(Integer purchaseNum) {
        this.purchaseNum = purchaseNum;
    }

    /**
     * 采购单位
     */
    public String getPurchaseUnit() {
        return purchaseUnit;
    }

    /**
     * 采购单位
     */
    public void setPurchaseUnit(String purchaseUnit) {
        this.purchaseUnit = purchaseUnit;
    }

    /**
     * 批发价
     */
    public BigDecimal getPurchaseTradePrice() {
        return purchaseTradePrice;
    }

    /**
     * 批发价
     */
    public void setPurchaseTradePrice(BigDecimal purchaseTradePrice) {
        this.purchaseTradePrice = purchaseTradePrice;
    }

    /**
     * 处方价
     */
    public BigDecimal getPurchasePrescriptionPrice() {
        return purchasePrescriptionPrice;
    }

    /**
     * 处方价
     */
    public void setPurchasePrescriptionPrice(BigDecimal purchasePrescriptionPrice) {
        this.purchasePrescriptionPrice = purchasePrescriptionPrice;
    }

    /**
     * 采购批发总额
     */
    public BigDecimal getPurchaseTradeTotalAmount() {
        return purchaseTradeTotalAmount;
    }

    /**
     * 采购批发总额
     */
    public void setPurchaseTradeTotalAmount(BigDecimal purchaseTradeTotalAmount) {
        this.purchaseTradeTotalAmount = purchaseTradeTotalAmount;
    }

    /**
     * 采购处方总额
     */
    public BigDecimal getPurchasePrescriptionTotalAmount() {
        return purchasePrescriptionTotalAmount;
    }

    /**
     * 采购处方总额
     */
    public void setPurchasePrescriptionTotalAmount(BigDecimal purchasePrescriptionTotalAmount) {
        this.purchasePrescriptionTotalAmount = purchasePrescriptionTotalAmount;
    }

    /**
     * 创建时间
     */
    public String getCreateTime() {
        return createTime;
    }

    /**
     * 创建时间
     */
    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    /**
     *
     */
    public Integer getHmrId() {
        return hmrId;
    }

    /**
     *
     */
    public void setHmrId(Integer hmrId) {
        this.hmrId = hmrId;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        DzmHisPurchase other = (DzmHisPurchase) that;
        return (this.getPurchaseId() == null ? other.getPurchaseId() == null : this.getPurchaseId().equals(other.getPurchaseId()))
                && (this.getMedicinesId() == null ? other.getMedicinesId() == null : this.getMedicinesId().equals(other.getMedicinesId()))
                && (this.getBatchesOfInventoryId() == null ? other.getBatchesOfInventoryId() == null : this.getBatchesOfInventoryId().equals(other.getBatchesOfInventoryId()))
                && (this.getPurchaseNum() == null ? other.getPurchaseNum() == null : this.getPurchaseNum().equals(other.getPurchaseNum()))
                && (this.getPurchaseUnit() == null ? other.getPurchaseUnit() == null : this.getPurchaseUnit().equals(other.getPurchaseUnit()))
                && (this.getPurchaseTradePrice() == null ? other.getPurchaseTradePrice() == null : this.getPurchaseTradePrice().equals(other.getPurchaseTradePrice()))
                && (this.getPurchasePrescriptionPrice() == null ? other.getPurchasePrescriptionPrice() == null : this.getPurchasePrescriptionPrice().equals(other.getPurchasePrescriptionPrice()))
                && (this.getPurchaseTradeTotalAmount() == null ? other.getPurchaseTradeTotalAmount() == null : this.getPurchaseTradeTotalAmount().equals(other.getPurchaseTradeTotalAmount()))
                && (this.getPurchasePrescriptionTotalAmount() == null ? other.getPurchasePrescriptionTotalAmount() == null : this.getPurchasePrescriptionTotalAmount().equals(other.getPurchasePrescriptionTotalAmount()))
                && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
                && (this.getHmrId() == null ? other.getHmrId() == null : this.getHmrId().equals(other.getHmrId()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getPurchaseId() == null) ? 0 : getPurchaseId().hashCode());
        result = prime * result + ((getMedicinesId() == null) ? 0 : getMedicinesId().hashCode());
        result = prime * result + ((getBatchesOfInventoryId() == null) ? 0 : getBatchesOfInventoryId().hashCode());
        result = prime * result + ((getPurchaseNum() == null) ? 0 : getPurchaseNum().hashCode());
        result = prime * result + ((getPurchaseUnit() == null) ? 0 : getPurchaseUnit().hashCode());
        result = prime * result + ((getPurchaseTradePrice() == null) ? 0 : getPurchaseTradePrice().hashCode());
        result = prime * result + ((getPurchasePrescriptionPrice() == null) ? 0 : getPurchasePrescriptionPrice().hashCode());
        result = prime * result + ((getPurchaseTradeTotalAmount() == null) ? 0 : getPurchaseTradeTotalAmount().hashCode());
        result = prime * result + ((getPurchasePrescriptionTotalAmount() == null) ? 0 : getPurchasePrescriptionTotalAmount().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getHmrId() == null) ? 0 : getHmrId().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", purchaseId=").append(purchaseId);
        sb.append(", medicinesId=").append(medicinesId);
        sb.append(", batchesOfInventoryId=").append(batchesOfInventoryId);
        sb.append(", purchaseNum=").append(purchaseNum);
        sb.append(", purchaseUnit=").append(purchaseUnit);
        sb.append(", purchaseTradePrice=").append(purchaseTradePrice);
        sb.append(", purchasePrescriptionPrice=").append(purchasePrescriptionPrice);
        sb.append(", purchaseTradeTotalAmount=").append(purchaseTradeTotalAmount);
        sb.append(", purchasePrescriptionTotalAmount=").append(purchasePrescriptionTotalAmount);
        sb.append(", createTime=").append(createTime);
        sb.append(", hmrId=").append(hmrId);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}